<?php 
	require_once (dirname(__FILE__).'/includes/tpl_config.php');
	require_once (dirname(__FILE__).'/includes/dbconn.php');	
	
	$tpl->assign("title","IBM俱乐部");
	require_once 'navi.php';
	
	$tpl->display('home_head.tpl');
	$tpl->display('home_left_logout.tpl');
	
	//滚动公告板
	$sql = "select * from module where modname='公告板' "; 
    $result = $db->sql_query($sql);
    if($result){
      $row = $db->sql_fetchrow($result);
	  $tpl->assign("annhref",$row['modhref']);
    }
    
    $sql = "select anid,title from announce order by time desc";
    $result = $db->sql_query($sql);
    $rowset = $db->sql_fetchrowset($result);
	$db->sql_freeresult($result);
	$tpl->assign("annrows",$rowset);  
	$tpl->display('home_left_ann.tpl');
	
	$tpl->display('home_main.tpl');
	$tpl->display('footer.tpl');
?>